    //
//  ContactInfoViewController.m
//  Untitled
//
//  Created by zou leeging on 11-1-8.
//  Copyright 2011 apple. All rights reserved.
//

#import "ContactInfoViewController.h"


@implementation ContactInfoViewController

// The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
/*
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization.
    }
    return self;
}
*/


// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
	[super loadView];
	
	UIImage *img = [UIImage imageNamed:@"loginback"];
	UIImageView *regBack = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, img.size.width, img.size.height)];
	regBack.image = img;
	[self.view addSubview:regBack];
	[regBack release];
	
	UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(5, 60, 90, 20)];
	label.text = @"联系人姓名";
	[label setTag:1];
	label.font = [UIFont systemFontOfSize:13];
	label.textAlignment = UITextAlignmentRight;
	label.backgroundColor = [UIColor clearColor];
	[self.view addSubview:label];
	[label release];
	
	nameText = [[UITextField alloc]initWithFrame:CGRectMake(100, 60, 100, 20)];
	nameText.borderStyle = UITextBorderStyleRoundedRect;
	nameText.returnKeyType = UIReturnKeyDone;
	nameText.delegate = self;
	[self.view addSubview:nameText];
	[nameText release];
	//-------------------------------------
	label = [[UILabel alloc]initWithFrame:CGRectMake(5, 105, 90, 20)];
	label.text = @"联系人手机";
	label.textAlignment = UITextAlignmentRight;
	label.font = [UIFont systemFontOfSize:13];
	label.backgroundColor = [UIColor clearColor];
	[self.view addSubview:label];
	[label release];
	
	cellphone = [[UITextField alloc]initWithFrame:CGRectMake(100, 105, 100, 20)];
	cellphone.borderStyle = UITextBorderStyleRoundedRect;
	cellphone.returnKeyType = UIReturnKeyDone;
	cellphone.delegate = self;
	[self.view addSubview:cellphone];
	[cellphone release];
	//-------------------------------------
	label = [[UILabel alloc]initWithFrame:CGRectMake(5, 150, 90, 20)];
	label.text = @"联系人电话";
	label.textAlignment = UITextAlignmentRight;
	label.font = [UIFont systemFontOfSize:13];
	label.backgroundColor = [UIColor clearColor];
	[self.view addSubview:label];
	[label release];
	
	telephone = [[UITextField alloc]initWithFrame:CGRectMake(100, 150, 100, 20)];
	telephone.borderStyle = UITextBorderStyleRoundedRect;
	telephone.returnKeyType = UIReturnKeyDone;
	telephone.delegate = self;
	[self.view addSubview:telephone];
	[telephone release];
	//------------------------------------------
	label = [[UILabel alloc]initWithFrame:CGRectMake(5, 195, 90, 20)];
	label.text = @"联系人邮箱";
	label.textAlignment = UITextAlignmentRight;
	
	label.font = [UIFont systemFontOfSize:13];
	label.backgroundColor = [UIColor clearColor];
	[self.view addSubview:label];
	[label release];
	
	email = [[UITextField alloc]initWithFrame:CGRectMake(100, 195, 100, 20)];
	email.borderStyle = UITextBorderStyleRoundedRect;
	email.returnKeyType = UIReturnKeyDone;
	email.delegate = self;
	[self.view addSubview:email];
	[email release];
	//--------------------------------------------
	label = [[UILabel alloc]initWithFrame:CGRectMake(5, 240, 90, 20)];
	label.text = @"地址";
	label.textAlignment = UITextAlignmentRight;
	label.font = [UIFont systemFontOfSize:13];
	label.backgroundColor = [UIColor clearColor];
	[self.view addSubview:label];
	[label release];
	
	address = [[UITextField alloc]initWithFrame:CGRectMake(100, 240, 100, 20)];
	address.borderStyle = UITextBorderStyleRoundedRect;
	address.returnKeyType = UIReturnKeyDone;
	address.delegate = self;
	[self.view addSubview:address];
	[address release];
	//-----------
	label = [[UILabel alloc]initWithFrame:CGRectMake(5, 285, 90, 20)];
	label.text = @"备注";
	label.textAlignment = UITextAlignmentRight;
	label.font = [UIFont systemFontOfSize:13];
	label.backgroundColor = [UIColor clearColor];
	[self.view addSubview:label];
	[label release];
	
	notes = [[UITextView alloc]initWithFrame:CGRectMake(100, 285, 150, 70)];
	notes.returnKeyType = UIReturnKeyDone;
	[self.view addSubview:notes];
	[notes release];
}


/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}
*/

/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations.
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


@end
